package com.shop.pojo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Orders entity. @author MyEclipse Persistence Tools
 */

public class Orders implements java.io.Serializable
{

	// Fields

	private String idOrder;
	private Users users;
	private String ono;
	private BigDecimal ototalprice;
	private String oaddress;
	private Date odate;
	private BigDecimal ostate;
	private Set orderlists = new HashSet(0);

	// Constructors

	/** default constructor */
	public Orders()
	{
	}

	/** minimal constructor */
	public Orders(String idOrder, String ono, String oaddress)
	{
		this.idOrder = idOrder;
		this.ono = ono;
		this.oaddress = oaddress;
	}

	/** full constructor */
	public Orders(String idOrder, Users users, String ono,
			BigDecimal ototalprice, String oaddress, Date odate,
			BigDecimal ostate, Set orderlists)
	{
		this.idOrder = idOrder;
		this.users = users;
		this.ono = ono;
		this.ototalprice = ototalprice;
		this.oaddress = oaddress;
		this.odate = odate;
		this.ostate = ostate;
		this.orderlists = orderlists;
	}

	// Property accessors

	public String getIdOrder()
	{
		return this.idOrder;
	}

	public void setIdOrder(String idOrder)
	{
		this.idOrder = idOrder;
	}

	public Users getUsers()
	{
		return this.users;
	}

	public void setUsers(Users users)
	{
		this.users = users;
	}

	public String getOno()
	{
		return this.ono;
	}

	public void setOno(String ono)
	{
		this.ono = ono;
	}

	public BigDecimal getOtotalprice()
	{
		return this.ototalprice;
	}

	public void setOtotalprice(BigDecimal ototalprice)
	{
		this.ototalprice = ototalprice;
	}

	public String getOaddress()
	{
		return this.oaddress;
	}

	public void setOaddress(String oaddress)
	{
		this.oaddress = oaddress;
	}

	public Date getOdate()
	{
		return this.odate;
	}

	public void setOdate(Date odate)
	{
		this.odate = odate;
	}

	public BigDecimal getOstate()
	{
		return this.ostate;
	}

	public void setOstate(BigDecimal ostate)
	{
		this.ostate = ostate;
	}

	public Set getOrderlists()
	{
		return this.orderlists;
	}

	public void setOrderlists(Set orderlists)
	{
		this.orderlists = orderlists;
	}

}